package com.example.contentprovider0216;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Instrumentation;
import android.content.Context;
import android.os.Bundle;

import com.example.contentprovider0216.dao.IUserDao;
import com.example.contentprovider0216.dao.UserDaoImpl;
import com.example.contentprovider0216.pojo.User;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        textAddUser();
    }
    public void textAddUser(){
        IUserDao userDao=new UserDaoImpl(this);
        User user=new User();
        user.setSex("男");
        user.setAge(18);
        user.setPassword("123456");
        user.setUserName("lele");
        userDao.addUser(user);

    }


}